//
//  VIZTabBarController.m
//  Young-Old
//
//  Created by 位立志 on 16/4/25.
//  Copyright © 2016年 位立志. All rights reserved.
//
////////////////////////////////////////////////////////////////////
//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '< `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//         佛祖保佑            永无BUG              永不修改         //
////////////////////////////////////////////////////////////////////

#import "VIZTabBarController.h"

@interface VIZTabBarController ()

@end

@implementation VIZTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self addChildViewControllers];
}

- (void)addChildViewControllers{
    
    //日记
    VIZNoteController *noteController = [[VIZNoteController alloc]init];
//    [noteController setTitle:@"笔记"];
    VIZNavgationController *noteNav = [[VIZNavgationController alloc]initWithRootViewController:noteController];
    [noteNav.tabBarItem setTitle:@"笔记"];
    [noteNav.tabBarItem setImage:[UIImage imageNamed:@"tabbar_message_center"]];
    [self addChildViewController:noteNav];
    
    
    //主页
    VIZHomePageController *homePageController = [[VIZHomePageController alloc]init];
    [homePageController setTitle:@"主页"];
    VIZNavgationController *homePageNav = [[VIZNavgationController alloc]initWithRootViewController:homePageController];
    [homePageNav.tabBarItem setImage:[UIImage imageNamed:@"tabbar_home"]];
    [self addChildViewController:homePageNav];
    
    //好友
    VIZFriendController *friendController = [[VIZFriendController alloc]init];
    [friendController setTitle:@"好友"];
    VIZNavgationController *friendNav = [[VIZNavgationController alloc]initWithRootViewController:friendController];
    [friendNav.tabBarItem setImage:[UIImage imageNamed:@"tabbar_discover"]];
    [self addChildViewController:friendNav];
    
    //我
    VIZMineController *mineController = [[VIZMineController alloc]init];
    [mineController setTitle:@"我"];
    VIZNavgationController *mineNav = [[VIZNavgationController alloc]initWithRootViewController:mineController];
    [mineNav.tabBarItem setImage:[UIImage imageNamed:@"tabbar_profile"]];
    [self addChildViewController:mineNav];
    

}






@end
